package com.situ.junit;

import org.junit.Test;

import com.situ.domain.FruitModel;
import com.situ.service.FruitService;
import com.situ.service.ImportBillService;

public class FruitSetTest {
    FruitService fs = new FruitService();
    ImportBillService ibs = new ImportBillService();
    
    @Test
    public void listFruits() {
        for (FruitModel fruit : fs.listFruit()) {
            System.out.println( fruit);
        }
    }
    
    @Test
    public void goodsIn() {
        fs.goodsIn(ibs.getLastImportBill());
        for (FruitModel fruit : fs.listFruit()) {
            System.out.println( fruit);
        }
        System.out.println("-----------");
        fs.goodsIn(ibs.getLastImportBill());
        for (FruitModel fruit : fs.listFruit()) {
            System.out.println( fruit);
        }
    }

}
